<%--
  Created by IntelliJ IDEA.
  User: 烤红薯狠辣
  Date: 2020/7/30
  Time: 17:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String path = request.getContextPath(); %>
<script type="text/javascript" src="<%=path%>/static/web/js/home.min.js"></script>
<c:forEach items="${requestScope.carousels}" var="carousel" varStatus="stat">
    <c:if test="${!carousel.importance}">
        <c:if test="${stat.last}">
            <li class="last">
        </c:if>
        <c:if test="${!stat.last}">
            <li>
        </c:if>
            <a href="${carousel.href}" target="_blank">
                <img src="<%=path%>/static/web/images/${carousel.img}" width="113" height="113" alt="${carousel.title}"/>
                <div class="hot_info">
                    <h2 title="${carousel.title}">${carousel.title}</h2>
                    <em></em>
                    <p title="${carousel.describe}">
                            ${carousel.describe}</p>
                </div>
            </a>
        </li>
    </c:if>
</c:forEach>

